OCPBUGS-91651: OpenShift only: reduce operator RBAC to match actual usage#331
OCPBUGS-91651: OpenShift only: reduce operator RBAC to match actual usage#331oribon wants to merge 1 commit into
Conversation
WalkthroughThe ClusterServiceVersion manifest's ChangesRBAC Permissions Restructuring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 13 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (13 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: oribon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
3a88e0c to
b239c6c
Compare
The operator CSV grants permissions the operator never uses on OpenShift. Trim them down: - Remove cluster-wide secrets CRUD from manager-account. Cert rotation is disabled on OpenShift and service-ca handles TLS secrets. - Scope webhook config permissions to only the frr-k8s webhook name (needed for cleanup) plus read-only list/watch. Was unrestricted CRUD. - Remove all frr-k8s-daemon SA RBAC. CNO manages frr-k8s on OpenShift, operator never deploys it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Ori Braunshtein <obraunsh@redhat.com>
|
/retest |
1 similar comment
|
/retest |
|
@oribon: This pull request references Jira Issue OCPBUGS-91651, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@oribon: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/verified by ci |
|
@oribon: Jira verification commands are restricted to collaborators for this repo. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/verified by ci |
|
@oribon: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Is this a BUG FIX or a FEATURE ?:
What this PR does / why we need it:
Special notes for your reviewer:
Release note:
Summary by CodeRabbit
Release Notes
privilegedSecurityContextConstraints and refining PodSecurityPolicy usage to be scoped specifically to the speaker resource.